-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-7804: Fix dropdown offsetHeight error when ibexa-main-header not present #1183
IBX-7804: Fix dropdown offsetHeight error when ibexa-main-header not present #1183
Conversation
@@ -104,7 +104,7 @@ const Dropdown = ({ | |||
itemsStyles.maxHeight = window.innerHeight - bottom - ITEMS_LIST_SITE_MARGIN; | |||
} else { | |||
const headerContainer = document.querySelector('.ibexa-main-header'); | |||
const headerHeight = headerContainer.offsetHeight; | |||
const headerHeight = headerContainer?.offsetHeight ?? 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: ibexa-main-header offset was introduced to avoid dropdown popup overlap with the header (screenshots below). If there is no header there is no need to avoid overlap.
Credit: screenshots taken by @GrabowskiM
32fec89
to
1875ecf
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on IbexaDXP 4.6 commerce.
v4.6
Checklist:
@ibexa/engineering
).